xl: don't segfault parsing disk configs, support NULL physpath and ioemu:
authorGianni Tedesco <gianni.tedesco@citrix.com>
Wed, 5 Jan 2011 23:13:07 +0000 (23:13 +0000)
committerGianni Tedesco <gianni.tedesco@citrix.com>
Wed, 5 Jan 2011 23:13:07 +0000 (23:13 +0000)
commit1edf1ea47c0c833c30d6674b603ee2910e749ca9
treec102dbfb4649cb6fec4e2fed148b9b0e86f00a53
parentcc0854dd5708349ec27f640c3e6f7ba6269ea23b
xl: don't segfault parsing disk configs, support NULL physpath and ioemu:

Switch to a state machine parser since it's easier to handle all these
exotic cases without segfaulting. NULL physpaths are now allowed and a
dodgy hack is introduced to skip over the "ioemu:" prefix for a
virtpath. Also fixes a leak of buf2.

Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c